package com.kingwang.training.ooad.coffeemaker.badway;

import com.kingwang.training.ooad.coffeemaker.hardware.api.CoffeeMakerApi;

/**
 * 由于BoilerSensor和PlateSensor存在重复代码，
 * 提取抽象类进行存放
 *
 * @author King
 */
public abstract class Sensor {
    protected CoffeeMakerApi coffeeMakerApi;

    public Sensor(CoffeeMakerApi coffeeMakerApi) {
        this.coffeeMakerApi = coffeeMakerApi;
    }

    public abstract int sense();
}
